import java.util.DoubleSummaryStatistics;

public class TEST2 {
    public static int fac(int n) {
        int fac1 = 1;
        for(int j = 1; j<= n; j++) {
            fac1 *= j;
        }
        return fac1;
    }

    public static int facsum() {
        int num = 5;
        int sum = 0;
        for(int i = 1; i <= num; i++) {
             sum += fac(i);
        }
        return sum;
    }

    public static void main(String[] args) {
        int ret = facsum();
        System.out.println("ret = " + ret);
    }

    public static void main1(String[] args) {
        int a = 10;
        int b = 20;
        int ret = add(a, b);
        System.out.println("ret = " + ret);
    }
    public static int add(int x, int y) {
        return x + y;
    }
}
